package logic

import (
	"iot-base/auth/model/iot"
	"iot-base/auth/svc"
)

type ThingLogic struct {
}

func NewThingLogic() *ThingLogic {
	return &ThingLogic{}
}

// ThingList 设备列表.
func (l *ThingLogic) ThingList(thingId string) ([]iot.Thing, error) {
	result, err := svc.Dao.TThings.FindStationsThing(thingId, false)
	return result, err
}
